package com.dingding.common.core.config;

/**
 * 
 * @ClassName: SystemCode 
 * @Description: 系统消息代码
 * @author cheshaowei
 * @date 2015-10-10 上午11:22:44
 */
public class SystemCode {

	/*********************公共响应码开始**********************/
	// 成功
	public static final int SUCCESS = 200;
	public static final String SUCCESS_MESSAGE = "请求成功";

	// 失败
	public static final int ERROR = 300;
	public static final String ERROR_MESSAGE = "系统异常";

	// 请求模块不存在
	public static final int MODULAR_NOTEXIT_ERROR = 301;
	public static final String MODULAR_NOTEXIT_MESSAGE = "客户端请求模块不存在";

	// 客户端请求的参数为空
	public static final int DATA_NULL_ERROR = 302;
	public static final String DATA_NULL_MESSAGE = "客户端请求数据为空";

	// 客户端请求的参数存在空参数
	public static final int DATA_NULL_PARAM = 303;
	public static final String DATA_NULL_PARAM_MESSAGE = "客户端请求参数存在空数据";

	// 手机获取访问凭证失败
	public static final int GET_CREDENTIAL_ERROR = 304;
	public static final String GET_CREDENTIAL_ERROR_MESSAGE = "客户端获取手机访问凭证错误";

	/**********************公共响应码结束**********************/

	/**********************手机验证码响应状态开始**********************/

	// 手机验证码失效(时间过期)
	public static final int VALIDATE_THROUGH_ERROR = 201;
	public static final String VALIDATE_THROUGH_MESSAGE = "手机验证码失效";

	// 手机验证码失效时间（单位：分钟）
	public static final int PHONE_VALIDATE_EXPIRE_TIME = 10;

	// 验证码输入不正确
	public static final int VALIDATE_NOT_THROUGH_ERROR = 202;
	public static final String VALIDATE_NOT_THROUGH_MESSAGE(Integer number){
		
		if(number == 0){
			return "本日的五次机会已用完，请明天再试！";
		}else{
			return "验证码输入有误,您还剩"+number+"次输入机会！";
		}
	}
	
	// 验证码不存在
//	public static final int VALIDATE_IS_NULL_ERROR = 202;
//	public static final String VALIDATE_IS_NULL_ERROR_MESSAGE = "验证码不存在";

	// 手机号码格式不正确
	public static final int PHONE_NUM_NOT_MATCH_ERROR = 231;
	public static final String PHONE_NUM_NOT_MATCH_MESSAGE = "手机号格式不正确";
	/**********************手机验证码响应状态结束**********************/

	/**********************注册开始**********************/
	// 该手机号已存在
	public static final int REGISTER_USER_EXIST_ERROR = 203;
	public static final String REGISTER_USER_EXIST_MESSAGE = "该手机号已存在";

	// 昵称不合法
	public static final int NICK_NAME_ILLEGAL_ERROR = 228;
	public static final String NICK_NAME_ILLEGAL_MESSAGE = "昵称不合法";
	/**********************注册结束**********************/

	/**********************登录开始**********************/
	// 用户名或密码错误
	public static final int LOGIN_FAIL_ERROR = 204;
	public static final String LOGIN_FAIL_MESSAGE = "用户名或验证码错误";

	// 用户被锁定
	public static final int USER_BLOCKED_ERROR = 227;
	public static final String USER_BLOCKED_MESSAGE = "当前用户被锁定";

	/**********************登录结束**********************/

	/**********************重置密码开始**********************/
	// 重置密码:原密码输入不正确
	public static final int RESET_FAIL_ERROR = 205;
	public static final String RESET_FAIL_MESSAGE = "原密码输入不正确";
	/**********************重置密码结束**********************/

	/**********************校验提现密码开始**********************/
	// 提现密码输入不正确
	public static final int WITHDRAWALS_FAIL_ERROR = 206;
	public static final String WITHDRAWALS_FAIL_MESSAGE = "提现密码输入不正确";

	// 提现金额不能小于1块钱
	public static final int DEPOSIT_MONEY_LITTLE_ERROR = 211;
	public static final String DEPOSIT_MONEY_LITTLE_MESSAGE = "提现金额不能小于1块钱";
	
	// 账户余额不足
	public static final int BALANCE_NOT_ENOUGH_ERROR = 263;
	public static final String BALANCE_NOT_ENOUGH_MESSAGE = "账户余额不足";

	// 首次提现查询用户不存在（提交的用户名与当前登录的用户id不属于同一个帐号）
	public static final int NOT_MATCH_ERROR = 226;
	public static final String NOT_MATCH_MESSAGE = "与当前登录帐号不一致";

	// 每日提现次数已达上限
	public static final int DEPOSIT_NUMBER_TOO_MANY_ERROR = 229;
	public static final String DEPOSIT_NUMBER_TOO_MANY_MESSAGE = "每日仅能提现一次";
	/**********************校验提现密码提现结束**********************/

	/**********************查看对方用户信息开始**********************/
	// 查看对方用户信息
	public static final int USER_INFO_NOT_EXIST_ERROR = 207;
	public static final String USER_INFO_NOT_EXIST_MESSAGE = "该用户不存在";
	/**********************查看对方用户信息结束**********************/

	/**********************用户注销开始**********************/
	// 用户注销
	public static final int USER_LOGOUT_ERROR = 208;
	public static final String USER_LOGOUT_MESSAGE = "该用户未登录";
	/**********************用户注销结束**********************/

	/**********************用户下单开始**********************/
	// 该用户存在未完成订单
	public static final int USER_PLACE_ORDER_ERROR = 209;
	public static final String USER_PLACE_ORDER_MESSAGE = "您尚有未完成订单";

	// 您的未完成订单过多
	public static final int USER_ORDERT_TOO_MANY_ERROR = 236;
	public static final String USER_ORDERT_TOO_MANY_MESSAGE = "您已存在未完成的长途和短途订单，请先完成！";

	// 您已有短途单，不能再抢短途单
	public static final int USER_GRAB_ORDERT_NOT_SHORT_SAME_ERROR = 237;
	public static final String USER_GRAB_ORDERT_NOT_SHORT_SAME_MESSAGE = "您已存在未完成的短途订单，不能重复抢单！";
	
	// 您已有长途单，不能再抢短途单
	public static final int USER_GRAB_ORDERT_NOT_SAME_LONG_ERROR = 238;
	public static final String USER_GRAB_ORDERT_NOT_LONG_SAME_MESSAGE = "您已存在未完成的长途订单，不能重复抢单！";
	
	// 您已存在短途单，不能再发短途订单！
	public static final int USER_ORDERT_NOT_SAME_SHORT_ERROR = 239;
	public static final String USER_ORDERT_NOT_SAME_SHORT_MESSAGE = "您已存在未完成的短途订单，不能重复发单！";

	// 您已存在长途单，不能再发长途订单！
	public static final int USER_ORDERT_NOT_SAME_LONG_ERROR = 240;
	public static final String USER_ORDERT_NOT_SAME_LONG_MESSAGE = "您已存在未完成的长途订单，不能重复发单！";
		

	// 订单的出发时间不正确
	public static final int SET_OUT_TIME_ERROR = 230;
	public static final String SET_OUT_TIME_MESSAGE = "您发单时间应大于当前时间";
	/**********************用户下单结束**********************/

	/**********************用户抢单开始**********************/
	// 该订单已被抢
	public static final int USER_GRAB_ORDER_ERROR = 210;
	public static final String USER_GRAB_ORDER_MESSAGE = "该订单已被抢";

	/**********************用户抢单结束**********************/

	/**********************乘客支付开始**********************/
	// 支付宝支付金额加叮币支付金额不等于总金额
	public static final int PASSENGER_PAY_ERROR = 212;
	public static final String PASSENGER_PAY_MESSAGE = "支付宝支付金额加叮币支付金额不等于总金额";

	// 该订单不是待支付状态
	public static final int ORDER_NOT_PAY_STATUS_ERROR = 213;
	public static final String ORDER_NOT_PAY_STATUS_MESSAGE = "该订单不是待支付状态";

	// 乘客支付时，乘客Id为空
	public static final int ORDER_INFO_IS_NULL_ERROR = 222;
	public static final String ORDER_INFO_IS_NULL_MESSAGE = "乘客支付时，乘客Id为空";
	/**********************乘客支付结束**********************/

	/**********************确认到达开始**********************/
	// 该订单状态不是已支付状态
	public static final int NOT_ALREADY_PAY_ERROR = 214;
	public static final String NOT_ALREADY_PAY_MESSAGE = "该订单不是已支付状态";

	// 该用户不存在账户信息
	public static final int NOT_EXIST_ACCOUNT_INFO_ERROR = 218;
	public static final String NOT_EXIST_ACCOUNT_INFO_MESSAGE = "用户账户信息不存在";

	// 转账失败
	public static final int TRANSFER_ACCOUNTS_FAILURE_ERROR = 221;
	public static final String TRANSFER_ACCOUNTS_FAILURE_MESSAGE = "用户转账失败";

	/**********************确认到达结束**********************/

	/**********************乘客取消订单开始**********************/
	// 该订单不存在
	public static final int ORDER_NOT_EXIST_ERROR = 217;
	public static final String ORDER_NOT_EXIST_MESSAGE = "该订单不存在";

	// 该订单状态已取消
	public static final int PASSENGER_CANCEL_ORDER_ERROR = 215;
	public static final String PASSENGER_CANCEL_ORDER_MESSAGE = "该订单已取消";

	// 该订单状态已完成
	public static final int PASSENGER_COMPLETE_ORDER_ERROR = 216;
	public static final String PASSENGER_COMPLETE_ORDER_MESSAGE = "该订单已完成";

	// 给乘客退款失败
	public static final int PASSENGER_REFUND_ERROR = 224;
	public static final String PASSENGER_REFUND_MESSAGE = "给乘客退款失败";
	/**********************乘客取消订单结束**********************/

	// 取消订单次数过多
	public static final int CANCEL_ORDER_TOO_MUCH = 219;
	public static final String CANCEL_ORDER_MUCH_MESSAGE = "取消订单次数超过三次";

	// 接单次数过多
	public static final int PUBLISH_ORDER_TOO_MUCH = 220;
	public static final String PUBLISH_ORDER_TOO_MUCH_MESSAGE = "接单次数超过5次";

	/**********************获取Banner开始**********************/
	// 获取到的Banner列表为空
	public static final int BANNER_NULL = 223;
	public static final String BANNER_NULL_MESSAGE = "获取到的Banner列表为空";
	/**********************乘客取消订单结束**********************/

	// 图片上传出现异常
	public static final int UPLOAD_ERROR = 241;
	public static final String UPLOAD_ERROR_MESSAGE = "图片上传出现异常！";

	// 车牌号已被注册
	public static final int LISENCEPLATE_EXITS_ERROR = 225;
	public static final String LISENCEPLATE_EXITS_ERROR_MESSAGE = "车牌号已被注册";

	/**********************用户路线获取**********************/
	// 用户路线列表不存在
	public static final int USER_ROUTE_NOT_EXIST = 232;
	public static final String USER_ROUTE_NOT_EXIST_MESSAGE = "用户路线列表不存在";

	// 用户路线列表无法添加(大于四条无法添加)
	public static final int ADD_USER_ROUTE = 233;
	public static final String ADD_USER_ROUTE_MESSAGE = "添加路线不能大于四条！";

	// 地址未设置
	public static final int ADDRESS_NOT_SET = 234;
	public static final String ADDRESS_NOT_SET_MESSAGE = "地址未设置，请先设置地址";

	// 门店加载数据为空
	public static final int STORE_LOAG_NULL = 255;
	public static final String STORE_LOAD_NULL_MESSAGE = "近期开放！";
	// 优惠券激活失败
	public static final int COUPON_ACTIVATION_FAIL = 235;
	public static final String COUPON_ACTIVATION_FAIL_MESSAGE = "优惠券激活失败";

	// 该路线不能删除
	public static final int ROUTE_NOT_CAN_DELETE = 256;
	public static final String ROUTE_NOT_CAN_DELETE_MESSAGE = "该路线不能删除!";
	
	// 暂无提现明细
	public static final int NOT_DEPOSIT_ERROR = 257;
	public static final String NOT_DEPOSIT_ERROR_MESSAGE = "暂无提现明细！";
	
	// 距离过短
	public static final int DISTANCE_SHORT_ERROR = 258;
	public static final String DISTANCE_SHORT_ERROR_MESSAGE = "起点和终点距离过短，请重新选择！";
	
	// 兑换邀请码错误
	public static final int EXCHANGE_FAIL_ERROR = 259;
	public static final String EXCHANGE_FAIL_ERROR_MESSAGE = "无效的邀请码！";
	
	// 该兑换码对应的活动您已经参与过了
	public static final int REPEAT_EXCHANGE_ERROR = 260;
	public static final String REPEAT_EXCHANGE_ERROR_MESSAGE = "该兑换码对应的活动您已经参与过了！";
	
	// 发布订单失败
	public static final int RELEASE_ORDER_FAIL_ERROR = 261;
	public static final String RELEASE_ORDER_FAIL_ERROR_MESSAGE = "发布订单失败！";
	
	// 发布订单失败
	public static final int GRAB_ORDER_FAIL_ERROR = 262;
	public static final String GRAB_ORDER_FAIL_ERROR_MESSAGE = "抢单失败！";
	
}
